package com.weigecoder.warehouse.service;

import com.weigecoder.warehouse.dto.AssignAuthDto;
import com.weigecoder.warehouse.dto.AssignAuthToUserDto;
import com.weigecoder.warehouse.entity.Auth;

import java.util.List;

public interface AuthService {

	//根据用户id查询用户权限(菜单)树
	public List<Auth> findAuthTreeByUserId(int userId);

	//查询整个权限(菜单)树
	List<Auth> allAuthTree();

	//给角色分配权限(菜单)
	void assignAuth(AssignAuthDto assignAuthDto);

    void assignAuthToUser(AssignAuthToUserDto assignAuthToUserDto);

}
